//
//  LZImageExtension.swift
//  halikaPeso
//
//  Created by L-zh on 2024/12/16.
//

import UIKit

extension UIImage {
    class func convertViewToImage(v:UIView) -> UIImage?{
        UIGraphicsBeginImageContext(v.bounds.size);
        v.layer.render(in: UIGraphicsGetCurrentContext()!)
        let image = UIGraphicsGetImageFromCurrentImageContext();
        return image
    }
}
